<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
 /*    var str = "HELLO JAVASCRIPT";
    srt.toLowerCase();
    console.log(str);
 */
   /*     var arr =[1,2,3,4,5];
       console.log(arr.length);
       for(i=0;i<arr.length;i++){
           console.log(arr[i]);
       }
        */
       var arr = ["red","blue","green"];  //js中数组可以有动态的数组长度
       arr[arr.length] ="orange";
       console.log(arr);
    </script>
</html>